import request from '@/utils/request'

// 授信列表
export function creditList(params) {
  return request({
    url: '/credit/list',
    method: 'GET',
    params: {
      userType: '10',
      ...params,
    },
  })
}
// 授信详情
export function creditDetail(id) {
  return request({
    url: `/credit/getCreditById/${id}?userType=10`,
    method: 'GET',
  })
}
// 授信审核
export function creditCheck(id, params) {
  return request({
    url: `/credit/examine/${id}`,
    method: 'POST',
    params: {
      userType: '10',
      ...params,
    },
  })
}
